package com.api.entitis;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 招聘信息
 */
@Data
@ApiModel("招聘信息")
@TableName("jobs_info")
@EqualsAndHashCode(callSuper = false)
public class JobsInfo {

    @TableId(type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("岗位")
    private String post;

    @ApiModelProperty("公司名称")
    private String companyName;

    @ApiModelProperty("薪资")
    private String pay;

    @ApiModelProperty("工作地点")
    private String workPlace;

    @ApiModelProperty("工作年限")
    private String workYear;

    @ApiModelProperty("学历")
    private String education;

    @ApiModelProperty("岗位职责")
    private String positionStatement;

    @ApiModelProperty("任职要求")
    private String jobRequirements;

    @ApiModelProperty("福利待遇")
    private String socialBenefits;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
